#ifndef FRAMEABSTRACT_H
#define FRAMEABSTRACT_H

#include <QWidget>

enum FrameType{
	FrameLeft,
	FrameTop,
	FrameRight,
	FrameBottom
};

class FrameAbstract : public QWidget
{
	Q_OBJECT

	QPixmap* _cacheImage;

protected:
	FrameType _type;

public:
	explicit FrameAbstract(FrameType type, QWidget* parent = NULL);
	~FrameAbstract();

	FrameType type() {return _type;}

protected:
	void resizeEvent(QResizeEvent *event);
	void paintEvent(QPaintEvent *event);

	virtual void paintFrame(QPainter* painter);
};

#endif // FRAMEABSTRACT_H
